package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {
    /**
     * 分类管理的分类查询
     * @param page
     * @param pageSize
     * @return
     */
    IPage<Category> selectPage(Integer page, Integer pageSize);

    boolean savecuisine(Category category);

    boolean deletecategory(Long ids);

    boolean putcategory(Category category);

    List<Category> selctList(Integer type);
}
